﻿using System;
using System.Diagnostics;
using System.Runtime.CompilerServices;

using DotNetNuke.Entities.Modules;


namespace DotNetNuke.Modules.UserDefinedTable
{



  /// <summary>
  /// this class adds events to record(s) editors to let data editors know about form action (delete update).
  /// This is crucial for handling file based datatypes such as document, URL, image,..
  /// </summary>
  public abstract class UDTdataEditor : PortalModuleBase
  {

    public delegate void onRowDeleteEventHandler();
    public delegate void onRowUpdateEventHandler();

    public event onRowDeleteEventHandler onRowDelete;
    public event onRowUpdateEventHandler onRowUpdate;



    protected void FileDataTypeRowDelete()
    {
      if (onRowDelete != null)
        onRowDelete();
    }


    
    
    protected void FileDataTypeRowUpdate()
    {
      if (onRowUpdate != null)
        onRowUpdate();
     
    }


  }

}

